<?php

class Tools {
    
    public static function test(){
        echo 'test';
    }
    
    public static function array_unshift($array, $value, $key=0){
        $new_array = array();
        
        $new_array[$key] = $value;
        
        foreach($array as $k => &$v){
            $new_array[$k] = $v;
        }
        unset($v);
        
        return $new_array;
    }
    
    public static function parseFloat($string){
        $res = str_replace(',', '.', $string);
        
        return $res;
    }
}